An Applicative Module Calculus
نویسنده
چکیده
The SML-like module systems are small typed languages of their own. As is, one would expect a proof of their soundness following from a proof of subject reduction. Unfortunately, the subject-reduction property and the preservation of type abstraction seem to be incompatible. As a consequence, in relevant module systems, the theoretical study of reductions is meaningless, and for instance, the question of normalization of module expressions can not even be considered. In this paper, we analyze this problem as a misunderstanding of the notion of module definition. We build a variant of the SML module system — inspired from recent works by Leroy, Harper, and Lillibridge — which enjoys the subject reduction property. Type abstraction — achieved through an explicit declaration of the signature of a module at its definition — is preserved. This was the initial motivation. Besides our system enjoys other type-theoretic properties: the calculus is strongly normalizing, there are no syntactic restrictions on module paths, it enjoys a purely applicative semantics, every module has a principal type, and type inference is decidable. Neither Leroy’s system nor Harper and Lillibridge’s system has all of them.
منابع مشابه
Completing Herbelin's Programme
In 1994 Herbelin started and partially achieved the programme of showing that, for intuitionistic implicational logic, there is a Curry-Howard interpretation of sequent calculus into a variant of the λ-calculus, specifically a variant which manipulates formally “applicative contexts” and inverts the associativity of “applicative terms”. Herbelin worked with a fragment of sequent calculus with c...
متن کاملA Nominal Theory of Objects with Dependent Types
We design and study νObj, a calculus and dependent type system for objects and classes which can have types as members. Type members can be aliases, abstract types, or new types. The type system can model the essential concepts of Java’s inner classes as well as virtual types and family polymorphism found in BETA or gbeta. It can also model most concepts of SML-style module systems, including s...
متن کاملApplicative Bisimulations for Delimited-Control Operators
We develop a behavioral theory for the untyped call-by-value λ-calculus extended with the delimited-control operators shift and reset. For this calculus, we discuss the possible observable behaviors and we define an applicative bisimilarity that characterizes contextual equivalence. We then compare the applicative bisimilarity and the CPS equivalence, a relation on terms often used in studies o...
متن کاملWhat Applicative Heads Apply To
In this paper I argue that the semantic similarity between the English and the Chaga benefactives is only apparent. Specifically, I argue that in Chaga, the applicative head relates an individual to the event described by the VP, following Marantz (1993), while in English, the applicative head relates an individual to the direct object (cf. Pesetsky 1995). I argue that applicative constructions...
متن کاملApplicative Bisimilarities for Call-by-Name and Call-by-Value λμ-Calculus
We propose the first sound and complete bisimilarities for the call-by-name and call-by-value untyped λμcalculus, defined in the applicative style. We give equivalence examples to illustrate how our relations can be used; in particular, we prove David and Py’s counter-example, which cannot be proved with Lassen’s preexisting normal form bisimilarities for the λμ-calculus.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1997